package com.neuedu.yyzx.po;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * @TableName customer
 */
@TableName(value = "customer")
@Data
public class Customer implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "customer_id", type = IdType.AUTO)
    private Integer customerId;

    /**
     * 客户姓名
     */
    @TableField(value = "customer_name")
    private String customerName;

    /**
     * 客户年龄
     */
    @TableField(value = "customer_age")
    private Integer customerAge;

    /**
     * 性别  0：男  1：女
     */
    @TableField(value = "customer_sex")
    private Integer customerSex;

    /**
     * 身份证号
     */
    @TableField(value = "idcard")
    private String idcard;

    /**
     * 房间号
     */
    @TableField(value = "room_no")
    private Integer roomNo;

    /**
     * 所属楼号
     */
    @TableField(value = "building_no")
    private String buildingNo;

    /**
     * 入住时间
     */
    @TableField(value = "checkin_date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date checkinDate;

    /**
     * 合同到期时间
     */
    @TableField(value = "expiration_date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date expirationDate;

    /**
     * 联系电话
     */
    @TableField(value = "contact_tel")
    private String contactTel;

    /**
     * 床位号
     */
    @TableField(value = "bed_id")
    private Integer bedId;

    /**
     * 身体状况
     */
    @TableField(value = "psychosomatic_state")
    private String psychosomaticState;

    /**
     * 出生日期
     */
    @TableField(value = "birthday")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    /**
     * 身高
     */
    @TableField(value = "height")
    private Integer height;

    /**
     * 体重
     */
    @TableField(value = "weight")
    private Integer weight;

    /**
     * 血型
     */
    @TableField(value = "blood_type")
    private String bloodType;

    /**
     * 文件路径
     */
    @TableField(value = "filepath")
    private String filepath;

    /**
     * 用户id 关联系统健康管家(护工)  无管家设置  -1
     */
    @TableField(value = "user_id", updateStrategy = FieldStrategy.ALWAYS)
    private Integer userId;

    /**
     * 护理等级
     */
    @TableField(value = "level_id")
    private Integer levelId;

    /**
     * 家属姓名
     */
    @TableField(value = "family_member")
    private String familyMember;

    /**
     * 身份证正面地址
     */
    @TableField(value = "idcardFront")
    private String idcardFront;

    /**
     * 身份证背面地址
     */
    @TableField(value = "idcardBack")
    private String idcardBack;

    /**
     * 逻辑删除标记（0：显示；1：隐藏）
     */
    @TableField(value = "is_deleted")
    @TableLogic
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}